<?php
declare(strict_types=1);

namespace Service\GoodsService;

use Service\BaseService;
use App\Model\BbcModel\GoodsService;

/**
 * 商品说明服务中心
 * @author chenshubo
 */
class GoodsBaseService extends BaseService {
    /**
     * 获取商品服务
     * @param int $cid
     */
    public function getService(int $cid) {
        return GoodsService::instance()
            ->select(['id'])
            ->where('cid', $cid)
            ->where('is_default', 1)
            ->where('status', 1)
            ->get()
            ->toArray();
    }
}